﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="AreaUserInforStatistic.aspx.cs" Inherits="FortuneHeaven.Admin.Pages.Statistic.AreaUserInforStatistic" %>
<%@ Register TagPrefix="uc1" TagName="Pagination" Src="~/Controls/Pagination.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="../../Common/Js/AreaSelect.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        if (document.getElementById('slProvince')) {
            BindProvince('<%= Province%>', 'slProvince', '<%= City%>', 'slCity'); //只初始化省份
        }
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <asp:Button runat="server" style="margin-top:5px;" CssClass="btn" ID="btnGenerateExcel" Text="导出Excel" OnClick="GenerateExcel" />
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblDeptName" runat="server" Font-Bold="true"></asp:Label>
            <asp:Label ID="lblStatistic" runat="server"></asp:Label>
        </div>
        <div class="right">
            <span id="spSearch" runat="server">
               <asp:Label ID="lbGiftOrder" runat="server" Text="省份: "></asp:Label>
            <select id="slProvince"  name="slProvince">
            </select>
            <asp:Label ID="Label1" runat="server" Text="城市: "></asp:Label>
            <select style=" width:70px;" id="slCity" name="slCity">
            </select>
            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="SearchValue" />
            </span>
            <asp:Label ID="lbLocation" runat="server" Visible="false"></asp:Label>
            <asp:Label ID="lblShow" runat="server" Text="显示:"></asp:Label>
            <asp:DropDownList ID="drpPagerSize" AutoPostBack="true" runat="server" OnSelectedIndexChanged="drpPagerSize_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <asp:ListView ID="lvNews" runat="server" EnableViewState="true" EnableModelValidation="True">
        <LayoutTemplate>
            <div id="list">
                <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <th class="sp">
                            &nbsp;
                        </th>
                        <th>
                            用户名
                        </th>
                        <th>
                            游戏ID
                        </th>
                        <th>
                            地区
                        </th>
                        <th>
                            注册ip
                        </th>
                        <th>
                            注册时间
                        </th>
                        <th>
                            最后登陆时间
                        </th>
                        <th>
                            登陆次数
                        </th>
                        <th>
                            游戏时间
                        </th>
                         <th>
                            手机号码
                        </th>
                        <th>
                            推广积分
                        </th>
                        <th>
                            税收
                        </th>
                        <th>
                            充值总积分
                        </th>
                        <th>
                            玩家当前总额
                        </th>
                        <th>
                            玩家赠送总积分
                        </th>
                        <th>
                            净消耗
                        </th>
                    </tr>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </tbody>
                </table>
            </div>
        </LayoutTemplate>
        <AlternatingItemTemplate>
             <tr>
                 <td class="sp">
                    &nbsp;
                </td>
                <td>
                  <a href='<%# NavToUserInforByName(Eval("Accounts"))%>'>  <%# Eval("Accounts")%></a>
                </td>
                <td>
                    <%# Eval("GameID")%>
                </td>
                <td>
                    <%# Eval("Area")%>
                </td>
                 <td>
                    <%# Eval("RegisterIP")%>
                </td>
                 <td>
                    <%# Eval("RegisterDate")%>
                </td>
                 <td>
                    <%# Eval("LastLogonDate")%>
                </td>
                 <td>
                    <%# Eval("GameLogonTimes")%>
                </td>
                 <td>
                    <%# FortuneHeavenCommon.ComMethod.UtilMethod.GetTimeByInt( Eval("PlayTimeCount"))%>
                </td>
                <td>
                    <%# Eval("Mobile")%>
                </td>
                 <td>
                    <%# Eval("SpreadValue")%>
                </td>
                <td>
                    <%# Eval("Revenue")%>
                </td>
                <td>
                    <%# Eval("ChargeValue")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("GiveScore")%>
                </td>
                <td>
                    <%# Eval("GameUsedScore")%>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table id="Table2" runat="server">
                <tr>
                    <td>
                        没有记录.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
             <tr>
                 <td class="sp">
                    &nbsp;
                </td>
                <td>
                  <a href='<%# NavToUserInforByName(Eval("Accounts"))%>'>  <%# Eval("Accounts")%></a>
                </td>
                <td>
                    <%# Eval("GameID")%>
                </td>
                <td>
                    <%# Eval("Area")%>
                </td>
                 <td>
                    <%# Eval("RegisterIP")%>
                </td>
                 <td>
                    <%# Eval("RegisterDate")%>
                </td>
                 <td>
                    <%# Eval("LastLogonDate")%>
                </td>
                 <td>
                    <%# Eval("GameLogonTimes")%>
                </td>
                 <td>
                    <%# FortuneHeavenCommon.ComMethod.UtilMethod.GetTimeByInt( Eval("PlayTimeCount"))%>
                </td>
                <td>
                    <%# Eval("Mobile")%>
                </td>
                 <td>
                    <%# Eval("SpreadValue")%>
                </td>
                <td>
                    <%# Eval("Revenue")%>
                </td>
                <td>
                    <%# Eval("ChargeValue")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("GiveScore")%>
                </td>
                <td>
                    <%# Eval("GameUsedScore")%>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div id="foot">
        <div class="foot_left">
        </div>
        <div class="foot_right">
            <uc1:Pagination ID="usPager" runat="server" />
        </div>
    </div>
</asp:Content>
